import time
f = open("m1_sorted.txt")
A = []
for i in f:
    A.append(int(i))
x = time.time()
for j in range(len(A)): 
    for i in range(len(A)-1):
        if A[i] > A[i+1]:
            A[1], A[i+1] = A[i+1], A[i]
y = time.time()
print("m1_sorted", int(y - x), 'milliseconds' )
import time
f = open("m2_reverse.txt")
A = []
for i in f:
    A.append(int(i))
x = time.time()
for j in range(len(A)): 
    for i in range(len(A)-1):
        if A[i] > A[i+1]:
            A[1], A[i+1] = A[i+1], A[i]
y = time.time()
print('m2_reverse', int(y - x), 'milliseconds')
import time
f = open("m3_shuffle.txt")
A = []
for i in f:
    A.append(int(i))
x = time.time()
for j in range(len(A)): 
    for i in range(len(A)-1):
        if A[i] > A[i+1]:
            A[1], A[i+1] = A[i+1], A[i]
y = time.time()
print('m3_shuffle', int(y - x),  'milliseconds')
